package net.diaowen.dwsurvey.entity;

import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import net.diaowen.common.base.entity.IdEntity;


/**
 * 抽奖奖项
 * @author zhangyuting
 * @date 2019年6月20日
 *
 */
@Entity
@Table(name="t_lottery_prize")
public class LotteryPrize extends IdEntity{
	
	/**
	 * 抽奖活动id
	 */
	private String lotteryActivityId;
	/**
	 * 参加人数
	 */
	private int participants;
	/**
	 * 参加次数
	 */
	private int partTimes;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 创建者
	 */
	private String createUser;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	/**
	 * 更新者
	 */
	private String updateUser;
	
	/**
	 * 九宫格奖品
	 */
	private List<LotteryPrizeDetail> prizeList;
	
	
	public String getLotteryActivityId() {
		return lotteryActivityId;
	}
	public void setLotteryActivityId(String lotteryActivityId) {
		this.lotteryActivityId = lotteryActivityId;
	}
	public int getParticipants() {
		return participants;
	}
	public void setParticipants(int participants) {
		this.participants = participants;
	}
	public int getPartTimes() {
		return partTimes;
	}
	public void setPartTimes(int partTimes) {
		this.partTimes = partTimes;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public String getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	@Transient
	public List<LotteryPrizeDetail> getPrizeList() {
		return prizeList;
	}
	public void setPrizeList(List<LotteryPrizeDetail> prizeList) {
		this.prizeList = prizeList;
	}
	
}
